
package com.rt.schedulenew.core.support.mybatisplus;

import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.apache.ibatis.logging.Log;

public class LogbackImpl implements Log {
    public Logger log = LoggerFactory.getLogger(LogbackImpl.class);

    public LogbackImpl(String clazz) {
    }

    public boolean isDebugEnabled() {
        return true;
    }

    public boolean isTraceEnabled() {
        return true;
    }

    public void error(String s, Throwable e) {
        log.error(s);
        e.printStackTrace(System.err);
    }

    public void error(String s) {
        log.error(s);
    }

    public void debug(String s) {
        log.info(s);
    }

    public void trace(String s) {
        log.trace(s);
    }

    public void warn(String s) {
        log.warn(s);
    }
}
